﻿using System;
using System.Web.UI;
using NopSolutions.NopCommerce.Common.Utils;

namespace NopSolutions.NopCommerce.Web
{
    public partial class QuickPayCancelPage : BaseNopFrontendPage
    {
        protected override void OnInit(EventArgs e) {
            base.OnInit(e);

            Load += new EventHandler(QuickPayCancelPage_Load);
        }

        void QuickPayCancelPage_Load(object sender, EventArgs e) {
            CommonHelper.SetResponseNoCache(Response);

            if (!Page.IsPostBack) {
                CommonHelper.SetMetaHttpEquiv(this.Master.Page, "refresh", "5;URL=/default.aspx");
            }
        }

        public override bool AllowGuestNavigation {
            get {
                return true;
            }
        }

        /// <summary>
        /// Gets a value indicating whether this page is tracked by 'Online Customers' module
        /// </summary>
        public override bool TrackedByOnlineCustomersModule {
            get {
                return false;
            }
        }
    }
}
